package com.wyz.saas.api.app

import android.graphics.Bitmap
import android.view.View
import android.widget.EditText
import androidx.fragment.app.Fragment
import com.wyz.saas.api.Authorized
import java.io.File

interface PanelButton : Authorized {

    fun getLabel(): String

    fun getBitmap(): Bitmap?

    fun onViewClick(fragment: Fragment?, view: View , callback : PanelCallback?)

    // 回调聊天界面的Callback
    interface PanelCallback {
        fun getInputEditText(): EditText

        // 返回需要发送的图片
        fun onSendGallery(paths: Array<String?>)

        // 返回录音文件和时常
        fun onRecordDone(file: File, time: Long)
    }
}